package com.example.gitxuexi;

import java.util.*;

public class Sort {
    public static void main(String[] args) {
       int[] a = {5,6,9,8,7,2,3};
       List<Integer> list = new ArrayList<>();
       for (int i = 0 ;i <a.length;i++){
          list.add(a[i]);
       }
       Collections.sort(list);
        System.out.println(list);
    }
}
